
#pragma once


// CColorTabCtrl

class CColorTabCtrl : public CTabCtrl
{
	DECLARE_DYNAMIC(CColorTabCtrl)

public:
	CColorTabCtrl();
	virtual ~CColorTabCtrl();

	void SetBkColor(COLORREF bkColor);
	void SetItemBkColor(COLORREF bkColor);
	void SetItemBkFocusColor(COLORREF bkColor);
	void SetTextFocusColor(COLORREF TextColor);
	void SetTextColor(COLORREF TextColor);

protected:
	COLORREF	m_bkgColor;
	COLORREF	m_ItemBkgColor;
	COLORREF	m_ItemBkgFocusColor;
	COLORREF	m_TextFocusColor;
	COLORREF	m_TextColor;	
	
	virtual void DrawItem(LPDRAWITEMSTRUCT);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
};


